package com.he.springbootmybatis.mapper;

import com.he.springbootmybatis.pojo.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

//这个注解表示了这是一个mybatis的mapper类，是Dao层的,
@Mapper
@Repository
public interface BlogMapper {

    List<Blog> queryBlogList();

    int addBlog(Blog blog);

    int deleteBlog(int id);

    List<Blog> queryBlogById(int id);

    int updateBlog(Blog blog);

}
